package com.waimai.db.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Orderfood entity. @author MyEclipse Persistence Tools
 */
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class OrderFood implements java.io.Serializable {

	// Fields

	private Integer foodId;
	private String foodName;
	private Float foodPrice;
	private Integer foodAmount;

	@JsonIgnore
	private Order order;
	
	// Constructors

	/** default constructor */
	public OrderFood() {
	}

	// Property accessors

	public Integer getFoodId() {
		return this.foodId;
	}

	public void setFoodId(Integer foodId) {
		this.foodId = foodId;
	}

	public String getFoodName() {
		return this.foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public Float getFoodPrice() {
		return this.foodPrice;
	}

	public void setFoodPrice(Float foodPrice) {
		this.foodPrice = foodPrice;
	}

	public Integer getFoodAmount() {
		return this.foodAmount;
	}

	public void setFoodAmount(Integer foodAmount) {
		this.foodAmount = foodAmount;
	}

	public Order getOrder() {
		return order;
	}


	public void setOrder(Order order) {
		this.order = order;
	}

	@Override
	public String toString() {
		return "OrderFood [foodId=" + foodId + ", foodName=" + foodName
				+ ", foodPrice=" + foodPrice + ", foodAmount=" + foodAmount
				+ "]";
	}
}